package com.itheima;
import com.itheima.controller.UserController;
import com.itheima.entity.Sun;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class AnnotationTest {
    public static void main(String[] args){
        ApplicationContext applicationContext=new
                ClassPathXmlApplicationContext("applicationContext.xml");
    /*   UserController usercontroller=(UserController)
                applicationContext.getBean("userController");
        usercontroller.save();*/


     Sun sun=(Sun) applicationContext.getBean("sun");
      sun.up();
       sun.down();
    }
}